// 常量路由
export const constantRoute = [
    {
      path: '/',
      name: 'layout',
      meta: {
        title: 'layout',
        hidden: false,
        icon: 'House',
      },
      redirect: '/home',
      component: () => import('@/layout/index.vue'),
      children: [
        {
          path: '/home',
          // name: 'layout',
          meta: {
            title: '首页',
            hidden: false,
            icon: 'HomeFilled',
          },
          component: () => import('@/views/home/index.vue'),
        },
         {
          path: '/ceshi',
          // name: 'layout',
          meta: {
            title: '测试',
            hidden: false,
            icon: 'House',
          },
          component: () => import('@/views/home/index.vue'),
        }
      ]
    }, {
      path: '/screen',
      name: 'screen',
      meta: {
        title: '数据大屏',
        hidden: false,
        icon: 'TrendCharts',
      },
      component: () => import('@/views/screen/index.vue'),
    }, {
       path: '/acl',
        name: 'acl',
        meta: {
          title: '权限管理',
          hidden: false,
          icon: 'TrendCharts',
        },
        component: () => import('@/layout/index.vue'),
        children: [
          { path: '/acl/user',
            name: 'user',
            meta: {
              title: '用户管理',
              hidden: false,
              icon: 'TrendCharts',
            },
            component: () => import('@/views/acl/user/index.vue'),
          }, { path: '/acl/role',
            name: 'role',
            meta: {
              title: '角色管理',
              hidden: false,
              icon: 'TrendCharts',
            },
            component: () => import('@/views/acl/role/index.vue'),
          }, { path: '/acl/permission',
            name: '/aclpermission',
            meta: {
              title: '菜单管理',
              hidden: false,
              icon: 'TrendCharts',
            },
            component: () => import('@/views/acl/permission/index.vue'),
          }
        ]
    }, {
      path: '/login',
      name: 'login',
      meta: {
        title: '登录',
        hidden: true,
        icon: 'UserFilled',
      },
      component: () => import('@/views/login/index.vue')
    }, {
      path: '/product',
      name: 'product',
      meta: {
        title: '商品管理',
        hidden: false,
        icon: 'UserFilled',
      },
      component: () => import('@/layout/index.vue'),
      children: [
          { path: '/product/trademark',
            name: 'trademark',
            meta: {
              title: '品牌管理',
              hidden: false,
              icon: 'TrendCharts',
            },
            component: () => import('@/views/product/trademark/index.vue'),
          }, { path: '/product/attr',
            name: 'attr',
            meta: {
              title: '属性管理',
              hidden: false,
              icon: 'TrendCharts',
            },
            component: () => import('@/views/product/attr/index.vue'),
          }, { path: '/product/spu',
            name: 'spu',
            meta: {
              title: 'spu管理',
              hidden: false,
              icon: 'TrendCharts',
            },
            component: () => import('@/views/product/spu/index.vue'),
          }, { path: '/product/sku',
            name: 'sku',
            meta: {
              title: 'sku管理',
              hidden: false,
              icon: 'TrendCharts',
            },
            component: () => import('@/views/product/sku/index.vue'),
          }
        ]
    }, {
      path: '/404',
      name: '404',
      meta: {
        title: '404',
        hidden: true,
        icon: 'WarnTriangleFilled',
      },
      component: () => import('@/views/404/index.vue')
    }, 
    // { // 任意路由，以上都没匹配上就重定向到404
    //   path: '/:pathMatch(.*)*',
    //   redirect: '404',
    //   name: 'Any',
    //   meta: {
    //     title: 'Any',
    //     hidden: true,
    //     icon: 'GoodsFilled',
    //   },
    // }
  ]